<template>
  <div class="app-container">



    <!-- 表格 -->
    <el-table :data="list" border stripe>

      <el-table-column
        label="#"
        width="50">
        <!-- <template slot-scope="scope">
          {{ (page - 1) * limit + scope.$index + 1 }}
        </template> -->
      </el-table-column>

      <el-table-column  prop="courseTitle"   label="课程标题" />
	      <el-table-column  prop="teacherName"    label="老师姓名" />
      <el-table-column   prop="mobile"   label="电话号码" />
      <el-table-column   prop="nickname"   label="学生姓名" />
	  

    </el-table>

   
  </div>
</template>

<script>
import memberApi from '@/api/member'

export default {
  // 定义数据模型
  data() {
    return {
      list: [], // 列表
      total: 0, // 总记录数
    
    }
  },

  // 页面渲染成功后获取数据
  created() {
	  if (this.$route.params.id) {
		  // console.log(this.$route.params.id+"bb");
	    this.fetchDataById(this.$route.params.id);
	  }
  
  },

  // 定义方法
  methods: {
   fetchDataById(id) {
     memberApi.getByIds(id).then(response => {
       this.list = response.data.OrderList
   console.log(response);
     })
   }


   
  }
}
</script>